// 最简代码，也就是这些字段必须有
import { useIFrameStoreHook } from "@/store/modules/iframe";
import { ref } from "vue";

const IFrame = () => import("@/layout/frameView.vue");

export default {
  path: "/iframeTest",
  redirect: "/iframeTest/index",
  meta: {
    title: "全要素资源接入-iframe入口",
    icon: "ri:search-line"
  },
  children: [
    {
      path: "/iframeTest/index",
      component: IFrame,
      // component: () => import("@/views/resourceAccess/indexIframe.vue"),
      meta: {
        title: "Iframe-场景验证",
        keepAlive: true,
        // frameSrc: "http://10.8.58.42:19333/#/app/qualityInspection"

        frameSrc:
          process.env.NODE_ENV === "development"
            ? "http://localhost:19333/#/app/qualityInspection"
            : "http://10.8.58.42:19333/#/app/qualityInspection"
      }
    }
  ]
} satisfies RouteConfigsTable;
